package com.weixin.text;

import java.sql.SQLException;

import com.weixin.entity.Supplier;
import com.weixin.service.ISupplierService;
import com.weixin.service.impl.SupplierServiceImpl;

public class SupplierText {
	public static void main(String[] args) throws SQLException {
		ISupplierService service=new SupplierServiceImpl();
		System.out.println(service.selectAll());
		System.out.println(service.selectById(6));

//		Supplier supplier=new Supplier();
//		supplier.setSupplier_name("老李");
//		System.out.println(service.addSupplier(supplier));
		
//		Supplier supplier=service.selectById(6);
//		supplier.setSupplier_address("朔州");
//		System.out.println(service.editSupplier(supplier));
		System.out.println(service.moveById(6));
	}
}
